package com.sgb.trip;

import android.os.Bundle;

import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.sgb.trip.view.fragment.TripHomeFragment;
import com.swgk.core.common.base.BaseActivity;

public class MainActivity extends BaseActivity {

    @Override
    protected int layoutId() {
        return R.layout.trip_activity_main;
    }

    @Override
    protected void createViewModel() {

    }

    @Override
    protected void init() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxMzMxNzk3MDIzMTkxNjAxMTUyIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiMTU5MTU0MDg1MzIiLCJsb2dpbiI6MTYzNDgwNjYzMH0.nEEq0Ycvc1u4HIiXJ3s39WtNmLmDas-yUEmTiF81py7cJQgTvaoJinToUwOwNTG3S72-IKHNKujHpg00LcERUFZp-Vb8Cq5Cg2CEvoCweN2n5GAcTJ4U9KRrZnH0uN_sHUZ9E_3qye4C8c4umDG-4u11fe1IsY7X4sUbAoCvbbM";
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.LOGIN_PC_TOKEN, token);
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.resourcePCToken, token);
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.resourceAPPToken, token);
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.LOGIN_TOKEN, token);
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.IS_AUTH_OR_JOIN_COMPANY, true);
//        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.COM_TYPE, 1);
//        ModuleHelper.getInstance().loginAndSaveToken("17123456789", "123456a");
        FragmentManager manager = getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.add(R.id.ll_main, TripHomeFragment.newInstance());
        transaction.commit();
    }

}